/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class RobotVacuumCleaner {
    static categoryCode = '010030010';

    static categoryName = '扫地机器人';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return RobotVacuumCleaner.categoryCode;
    }

    get categoryName() {
        return RobotVacuumCleaner.categoryName;
    }

    getChildLockSwitch(params) {
        return command({
            method: 'getChildLockSwitch',
            methodId: 'pgh0mq0E',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'phEqKkc9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getStatus(params) {
        return command({
            method: 'getStatus',
            methodId: 'pdN7zsCM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'ptRS9Dvn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setChildLockSwitch(params) {
        return command({
            method: 'setChildLockSwitch',
            methodId: 'ppAXIOP1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setContinue(params) {
        return command({
            method: 'setContinue',
            methodId: 'pDrhFbhI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFinish(params) {
        return command({
            method: 'setFinish',
            methodId: 'p1vFjxFz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pUPQ8Vno',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPause(params) {
        return command({
            method: 'setPause',
            methodId: 'peH3nfdk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'pGoxHGHW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pZgRT3RR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default RobotVacuumCleaner;
